﻿using Wisdom.Core;

namespace Wisdom.Web.Mvc
{
    /// <summary>
    /// Defines a base class to manage application life cycle. 
    /// </summary>
    public class MvcApplication : Application
    {
        public MvcApplication(IConfigSource configSource) : base(configSource)
        {
        }

        protected override IBootstrapper CreateBootstrapper()
        {
            return new MvcBootstrapper(this.ObjectContainer,
                                       new BuildManager(), 
                                       new BootstrapperTasksRegistry(),
                                       new PerRequestTasksRegistry());
        }
    }
}